/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ircclient;
import java.io.PrintWriter;
/**
 *
 * @author Justin
 */
public class SendChat {
    private PrintWriter out;
    private String name;
    public SendChat(PrintWriter out,String name)
    {
        this.name=name;
            this.out =out;
    }
    public void sendToServer(String chat)
    {
        String chatter=name+"- "+chat;
        out.print(chatter+'\n');
        out.flush();
    }
}
